package com.sixth.service;

import com.sixth.entity.*;
import com.sixth.until.CommonResult;
import com.sixth.until.TableResult;
import org.springframework.stereotype.Component;

import java.util.List;

//@Component
public interface PermissionService {
    List<Permission> getPermissionByUserid(String userid);

    CommonResult findMenuByUserid();

    //用户管理
    TableResult getUserByPage(Integer currentPage, Integer pageSize, UserVo user);

    //编辑角色
    CommonResult updateUserByUser(AclUser user);

    //删除
    CommonResult deleteUserById(String id);

    //修改状态
    CommonResult updateUserStatusByid(String id, String deleted);

    //添加用户
    CommonResult addUserByUser(AclUser user);

    //角色管理
    TableResult findRoleByPage(Integer currentPage, Integer pageSize, AclRole role);

    //修改角色状态
    CommonResult updateRoleStatusByid(String id, String deleted);

    //查询菜单
    TableResult findAllpermissionByPage(Integer currentPage, Integer pageSize, AclPermission permission);

    //添加菜单
    CommonResult permissioninsert(AclPermission permission);

    //根据id删除
    CommonResult deleteById(DeletePermission permissionIds);

    //分配权限
    CommonResult findPermissionByRoleId(String roleId);

    //分配权限
    CommonResult confirmFenPermission(PermissionVo permissionVo);

    //菜单管理修改
    CommonResult update(AclPermission permission);
}
